import { Routes } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { NotFoundComponent } from './not-found/not-found.component';
import { WxAplanComponent } from './home/wx-aplan/wx-aplan.component';
import { PlanComponent } from './home/plan/plan.component';
import { IntroductionComponent } from './home/plan/introduction/introduction.component';

export const routes: Routes = [
    {path:'', component:HomeComponent},
    {path:'wx-aplan', component:WxAplanComponent},
    {path:'plan/:id', component:PlanComponent,
        children:[
            {path:'introduction', component:IntroductionComponent}
        ]
    },
    {path:'**', component:NotFoundComponent}
];
